package artid.com.arttogoa.parser;

import java.io.Serializable;

import org.json.JSONObject;

public class ArtDynamicComment extends AppItem implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String id;
	String uid;
	String nickname;
	String imgurl;
	String create_time;
	String content;
	
	@Override
	public void parse(JSONObject obj) {
		if (null == obj) {
			return;
		}
		id = obj.optString("id");
		uid = obj.optString("uid");
		nickname = obj.optString("nickname");
		imgurl = obj.optString("imgurl");
		create_time = obj.optString("create_time");
		content = obj.optString("content");
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	public String getCreate_time() {
		return create_time;
	}

	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Override
	public String toString() {
		return "ArtDynamicComment [id=" + id + ", uid=" + uid + ", nickname="
				+ nickname + ", imgurl=" + imgurl + ", create_time="
				+ create_time + ", content=" + content + "]";
	}

}
